package com.ch.clinking.Dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.ch.clinking.bean.Shop;

@Dao
public interface ShopDao {

    @Insert
    void insert(Shop... shops);

    @Delete
    void delete(Shop... shops);

    @Update
    int update(Shop... shops);

    @Query("SELECT * FROM Shop WHERE shopId = :shopId ")
    Shop queryById(String shopId);
}
